﻿/***************
 * Copyright 2009 (C) 
 * Timur Fanshteyn
 * Blog: http://blog.tfanshteyn.com
 * ************/
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Linq.Expressions;

namespace Coherence.Linq
{
    public class ProjectionExpression : Expression
    {
        SelectExpression source;
        Expression projector;
        internal ProjectionExpression(SelectExpression source, Expression projector)
            : base((ExpressionType)CoherenceExpressionType.Projection, projector.Type)
        {
            this.source = source;
            this.projector = projector;
        }
        internal SelectExpression Source
        {
            get { return this.source; }
        }
        internal Expression Projector
        {
            get { return this.projector; }
        }
    }
}
